<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 */
class NotUploadQuestion extends AppModel
{
    //


    public function user(){
        return $this->belongsTo(Users::class,'user_id')->field('id,nickname,username,head_img');
    }


    public function unit(){
        return $this->belongsTo(Unit::class,'unit_id')->field('id,unit_title,attribute');
    }
}
